package handlers

import (
	"path/filepath"
)

var (
	encryptionKey = []byte("your-32-byte-key-here-12345678901") // 32字节的密钥
	staticDir     = ""                                          // 静态资源目录
)

// SetEncryptionKey sets the encryption key for user info decryption
func SetEncryptionKey(key []byte) {
	encryptionKey = key
}

// SetStaticDir sets the static directory path
func SetStaticDir(dir string) {
	staticDir = dir
}

// GetTemplatePath returns the path to a template file
func GetTemplatePath(templateName string) string {
	return filepath.Join(staticDir, "templates", templateName)
} 